<%@ page contentType="text/html; charset=utf-8" language="java" import="java.sql.*" errorPage="" %>
<!DOCTYPE html>
<html>
<head>
<script src="../jslib/jquery-1.8.2.min.js" type="text/javascript" charset="utf-8"></script>
<script src="../jslib/jquery-easyui-1.3.1/jquery.easyui.min.js" type="text/javascript" charset="utf-8"></script>
<link type="text/css" rel="stylesheet" href="../jslib/jquery-easyui-1.3.1/themes/icon.css" />
<link type="text/css" rel="stylesheet" href="../jslib/jquery-easyui-1.3.1/themes/gray/easyui.css" />
<link type="text/css" rel="stylesheet" href="../jslib/jquery-easyui-1.3.1/locale/easyui-lang-zh_CN.js" />
<script type="text/javascript" charset="utf-8">
	var datagrid; /*生成easyui的datagrid*/
	$(document).ready(function() {
		datagrid = $('#datagrid').datagrid({
			url: '../action/professor.php',
			pagination: true,
			pagePosition: 'bottom',
			pageSize: 10,
			pageList: [10, 20, 30, 40, 50],
			fit: true,
			fitColumns: false,
			nowrap: false,
			border: false,
			checkOnSelect: false,
			selectOnCheck: true,
			idField: 'cid',
			sortName: 'cname',
			sortOrder: 'desc',
			frozenColumns: [
				[{
					title: '编号',
					field: 'cid',
					width: 100,
					sortable: true,
					checkbox: true
				}, {
					title: '教授姓名',
					field: 'cname',
					width: 150,
					sortable: true
				}, {
					title: '研究方向',
					field: 'cresearch',
					width: 150,
				}, {
					title: 'EMAIL',
					field: 'cemail',
					width: 150,
				}, {
					title: '任教学校',
					field: 'cschool',
					width: 150,
				}]
			],
		})
	});
	
	function  submitSearchForm(){
		$.ajax({
			url : '',
			type : 'post',
			data : $('#prodSearchForm').serialize(),
			cache : false,
			datatype : 'json',
			success : function(r){
				console.info(r);
			}
		});
	}

	function cleanSearch(){
		$('#prodSearchForm').form('clear');
	}
</script>
<script>
	
</script>
</head>
<body class="easyui-layout" data-options="fit:true">

	<div data-options="region:'north',border:false,title:'过滤条件'" style="height: 160px;overflow: hidden;" align="left">
		<form id="prodSearchForm">
			<table class="tableForm datagrid-toolbar" style="width: 100%;height: 100%;">
				<tr>
                    <th>产品编号</th>
                    <td><input name="prodID" style="width:120px;" /></td>
                    <th>订单号</th>
                    <td><input name="indentID" style="width:120px;" /></td>
                    <th>部门</th>
                    <td><input name="dpart" style="width:120px;" /></td>
                    <th>序列号</th>
                    <td><input name="SN" style="width:120px;" /></td>                     
				</tr>
                
                <tr></tr>
				
                <tr>
                    <th>物料编码</th>
                    <td><input name="materialCode" style="width:120px;" /></td>
                    <th>供应商</th>
                    <td><input name="provider" style="width:120px;" /></td>
                    <th>采集人</th>
                    <td><input name="gatherer" style="width:120px;" /></td>
                    <th>检验员</th>
                    <td><input name="IQC" style="width:120px;" /></td>                     
				</tr>
                    <th>采集时间</th>
					<td><input name="createdatetimeStart" class="easyui-datetimebox" data-options="editable:false" style="width: 155px;" /><p style="text-align:center;margin:0px">至</p><input name="createdatetimeEnd" class="easyui-datetimebox" data-options="editable:false" style="width: 155px;" /></td>
                    <th>检验时间</th>
                    <td><input name="modifydatetimeStart" class="easyui-datetimebox" data-options="editable:false" style="width: 155px;" /><p style="text-align:center;margin:0px">至</p><input name="modifydatetimeEnd" class="easyui-datetimebox" data-options="editable:false" style="width: 155px;" /></td>

                	<th>
					<a href="javascript:void(0);" class="easyui-linkbutton" onclick="submitSearchForm();">过滤</a>
                  	</th>
                    <td>
                    <a href="javascript:void(0);" class="easyui-linkbutton" onclick="cleanSearch();">取消</a>
                    </td>
                </tr>
                
			</table>
		</form>
	</div>
	<div data-options="region:'center',border:false" style="overflow: hidden;">
		<table id="datagrid"></table>
	</div>
<!--
	<div id="menu" class="easyui-menu" style="width:120px;display: none;">
		<div onclick="append();" data-options="iconCls:'icon-add'">增加</div>
		<div onclick="remove();" data-options="iconCls:'icon-remove'">删除</div>
		<div onclick="edit();" data-options="iconCls:'icon-edit'">编辑</div>
	</div>
 -->
</body>
</html>